package info.ask4research.model.enums;

public enum Effort {

	INDIVIDUAL(0), GROUP(1);
	
	private int id;

	private Effort(int id) {
		this.id = id;
	}
	
	public int getId() {
		return this.id;
	}
	
    public static Effort valueOf(int value) {
        switch (value) {
            case 0: return INDIVIDUAL;
            case 1: return GROUP;
            default: return INDIVIDUAL;
        }
    }
    
    public String getName() {
		switch(this.id) {
		case 0:
			return "INDIVIDUAL";
		case 1:
			return "GROUP";
		default:
			return "INDIVIDUAL";
		}
	}
    
    @Override
    public String toString() {
		switch(this.id) {
		case 0:
			return "INDIVIDUAL EFFORT";
		case 1:
			return "GROUP"; 
		default:
			return "INDIVIDUAL EFFORT";
		}
    }
    
}
